import Head from 'next/head';
import StateOptionsTable from '../../../components/prop-tables/StateOptionsTable';
import SourceCode from '../../../components/prop-tables/StateOptionsSource';

<Head>
  <title>State Options - Material React Table V1 Docs</title>
  <meta
    name="description"
    content="All the state options that can be used in Material React Table"
  />
  <meta
    property="og:title"
    content="Material React Table State Options API Reference"
  />
  <meta
    property="og:description"
    content="A reference of all the state options that can be used in Material React Table"
  />
</Head>

## State Options

> Many of the state options you can pass here are the same as the ones you can pass to the [useReactTable](https://tanstack.com/table/v8/docs/api/core/table) useTableInstance hook.

Here is a list of all the state options you can pass to `initialState` or `state`.

```tsx
<MaterialReactTable
  initialState={
    {
      // all the state options you can pass here
    }
  }
  state={
    {
      // or here
    }
  }
/>
```

<StateOptionsTable />

<SourceCode />
